home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!craiga
- From: craiga@netcom.com (Craig Arnush)
- Subject: Re: Bloated BC5.0 DOS Executable
- Message-ID: <craigaDovCnt.1I1@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- References: <315727A7.7365@mnsinc.com>
- Date: Tue, 26 Mar 1996 09:50:17 GMT
- Sender: craiga@netcom14.netcom.com
-
- Craig McCarter <mccarter@mnsinc.com> writes:
- >
- >I just compiled a 16 Bit MS-DOS application using BC5.0 and ended up with a
- >48,532 byte EXE file. The next most recent compiler that I have installed is
- >BC3.1 and it produces a 19,403 byte EXE file from the same C source code.
- >
- >The comple and link options are same (as far as I can tell). Can anyone suggest
- >why BC5.0 produces such a large executable?
-
- A number of things can cause the executable to bloat like that. First
- and foremost is any debugging information. Try running the TDSTRIP (or
- TDSTRP32) program on the executable and see if you can shrink it
- immediately.
-
- Next is the existence of a bunch of exception handling code. Even if
- your code doesn't explicitly make use of it, there might be some stuff
- being included in some of the various libraries you're linking, etc.
- Take a look at the online help about exception handling and how to turn
- it off during the compile and the link process (two different things to do).
-
- And I think that there's a third obvious-to-try thing that for some odd
- reason is escaping through my ears at the moment. Sorry.
-
- Me
- --
- /----------------------------------------------------\
- | Craig Arnush | "Zog!" |
- | craiga@netcom.com | - The Old One at Sigma 957 |
- \----------------------------------------------------/
-